package com.lxmes.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.business.mapper.CcOrderIteminfoMapper;
import com.lxmes.business.domain.CcOrderIteminfo;
import com.lxmes.business.service.ICcOrderIteminfoService;

/**
 * 订单详情表Service业务层处理
 * 
 * @author 张志煜
 * @date 2022-09-04
 */
@Service
public class CcOrderIteminfoServiceImpl implements ICcOrderIteminfoService 
{
    @Autowired
    private CcOrderIteminfoMapper ccOrderIteminfoMapper;

    /**
     * 查询订单详情表
     * 
     * @param id 订单详情表主键
     * @return 订单详情表
     */
    @Override
    public CcOrderIteminfo selectCcOrderIteminfoById(Long id)
    {
        return ccOrderIteminfoMapper.selectCcOrderIteminfoById(id);
    }

    /**
     * 查询订单详情表列表
     * 
     * @param ccOrderIteminfo 订单详情表
     * @return 订单详情表
     */
    @Override
    public List<CcOrderIteminfo> selectCcOrderIteminfoList(CcOrderIteminfo ccOrderIteminfo)
    {
        return ccOrderIteminfoMapper.selectCcOrderIteminfoList(ccOrderIteminfo);
    }

    /**
     * 新增订单详情表
     * 
     * @param ccOrderIteminfo 订单详情表
     * @return 结果
     */
    @Override
    public int insertCcOrderIteminfo(CcOrderIteminfo ccOrderIteminfo)
    {
        return ccOrderIteminfoMapper.insertCcOrderIteminfo(ccOrderIteminfo);
    }

    /**
     * 修改订单详情表
     * 
     * @param ccOrderIteminfo 订单详情表
     * @return 结果
     */
    @Override
    public int updateCcOrderIteminfo(CcOrderIteminfo ccOrderIteminfo)
    {
        return ccOrderIteminfoMapper.updateCcOrderIteminfo(ccOrderIteminfo);
    }

    /**
     * 批量删除订单详情表
     * 
     * @param ids 需要删除的订单详情表主键
     * @return 结果
     */
    @Override
    public int deleteCcOrderIteminfoByIds(Long[] ids)
    {
        return ccOrderIteminfoMapper.deleteCcOrderIteminfoByIds(ids);
    }

    /**
     * 删除订单详情表信息
     * 
     * @param id 订单详情表主键
     * @return 结果
     */
    @Override
    public int deleteCcOrderIteminfoById(Long id)
    {
        return ccOrderIteminfoMapper.deleteCcOrderIteminfoById(id);
    }
}
